CSharpTest.Net
Values Property
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace > SynchronizedDictionary<TKey,TValue> Class : Values Property

Glossary Item Box

Gets an ICollection containing the values in the IDictionary.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Values As ICollection(Of TValue)
C# 
public ICollection<TValue> Values {get;}

Example

Library/Library.Test/TestSynchronizedCollections.cs

C#Copy Code
SynchronizedDictionary<string, string> test = new SynchronizedDictionary<string, string>(new Dictionary<string, string>());
test["a"] = "b";
string all = String.Join("", new List<string>(test.Values).ToArray());
Assert.AreEqual("b", all);
VB.NETCopy Code
Dim test As New SynchronizedDictionary(Of String, String)(New Dictionary(Of String, String)())
test("a") = "b"
Dim all As String = [String].Join("", New List(Of String)(test.Values).ToArray())
Assert.AreEqual("b", all)

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys